<div class="modal-header">
    <h4 class="modal-title">奖品信息</h4>
</div>
<div class="modal-body">
    <div class="container-fluid form-horizontal ">

<div class="col-xs-12 " >
		<div class="panel-body">
			<div class="container-fluid">
				
				<div class="col-xs-12 col-md-12" >

					<div class="form-group">
						<label class="col-xs-3 control-label">销售品名称</label>
   						<div class="col-xs-8">
		   					<ui-select ng-model="searchform.selected" theme="bootstrap" ng-disabled="selectgood.flag == '0'" ng-change="change(searchform.selected)">
								<ui-select-match placeholder="请选择一个销售品作为奖品">{{$select.selected.name}}</ui-select-match>
								<ui-select-choices group-by="'place_name'" repeat="item in datas | filter: $select.search">
									<span ng-bind-html="item.name | highlight: $select.search"></span>
									<!--<small ng-bind-html="item.code | highlight: $select.search"></small>-->
								</ui-select-choices>
		            </ui-select>
   						</div>    
 					</div>

          <div class="form-group">
              <label class="col-sm-3 col-xs-12 control-label">奖品开启时间</label>
              <div class="col-xs-8">
              <div class="input-group" datetimepicker ng-model="vm.date" options="vm.options">
                  <input class="form-control"/>
                  <span class="input-group-addon">
                      <span class="glyphicon glyphicon-calendar"></span>
                  </span>
              </div>
              </div>                        
          </div>
          <div class="form-group">
              <label class="col-sm-3 col-xs-12 control-label">奖品结束时间</label>
              <div class="col-xs-8">
              <div class="input-group" datetimepicker ng-model="vm1.date" options="vm1.options">
                  <input class="form-control"/>
                  <span class="input-group-addon">
                      <span class="glyphicon glyphicon-calendar"></span>
                  </span>
              </div>
              </div>                        
          </div>

					<div class="form-group">
						<label class="col-xs-3 control-label" alt="1223" title="杀价价 = 平台销售价格">杀价价</label>
						<div class="col-xs-8">
							<input type="text" class="form-control"
							ng-model="info.guide_price" disabled
							>
						</div>
					</div>

					<div class="form-group">
						<label class="col-xs-3 control-label">目标价</label>
						<div class="col-xs-8">
							<input type="text" class="form-control" placeholder="请输入目标价"
							ng-model="info.price"
							>
						</div>
					</div>

          <div class="form-group">
              <label class="col-xs-3 control-label">活动补贴</label>
              <div class="col-xs-8">
                  <ui-select ng-model="subsidySearchform.selected" theme="bootstrap" ng-disabled="item != undefined">
                  <ui-select-match placeholder="请选择活动补贴">{{$select.selected.subsidy_name}}</ui-select-match>
                  <ui-select-choices group-by="" repeat="item in subsidyarr | filter: $select.search">
                    <span ng-bind-html="item.subsidy_name | highlight: $select.search"></span>
                    <!--<small ng-bind-html="item.code | highlight: $select.search"></small>-->
                  </ui-select-choices>
                  </ui-select>
              </div>    
          </div>
					

					<div class="form-group">
						<label class="col-xs-3 control-label">允许参加最大次数</label>
						<div class="col-xs-8">
							<input type="number" class="form-control" placeholder="请输入允许参加最大次数"
							ng-model="info.top_num"
							>
						</div>
					</div>

                    <div class="form-group">
						<label class="col-xs-3 control-label">允许帮砍最大次数</label>
						<div class="col-xs-8">
							<input type="number" class="form-control" placeholder="请输入允许帮砍最大次数"
							ng-model="info.help_num"
							>
						</div>
					</div>

					 <div class="form-group">
						<label class="col-xs-3 control-label">需要砍价次数</label>
						<div class="col-xs-8">
							<input type="number" class="form-control" placeholder="请输入需要砍价次数"
							ng-model="info.need_num"
							>
						</div>
					</div>

					<div class="form-group">
						<label for="inputDate" class="col-sm-3 control-label">活动详情图</label>
						<div class="col-xs-8">
							<!-- <div text-angular ng-model="info.goods_explain"></div> -->
							<div class="ueditor" ng-model="info.goods_explain"></div>
					 </div>
					 </div>	

					<div class="form-group">
					 <label for="inputDate" class="col-sm-3 control-label">奖品图片</label>
					 <div class="col-xs-8">
					      <img ng-src="{{info.logo}}" width="100%" height="200" ng-model="info.logo">
					        <input type="file" nv-file-select uploader="uploader" / ng-hide="hide===true" ><br/>
					        <ul class="list-group">
					          <li class="list-group-item" ng-repeat="item in uploader.queue">
					            文件名: <span ng-bind="item.file.name"></span>
					            <button type="button" class="btn btn-default btn-xs"  ng-click="item.upload()"><span class="glyphicon glyphicon-upload"></span> 上传</button>
					            <div class="progress mt10">
					              <div class="progress-bar" role="progressbar" ng-style="{ 'width': uploader.progress + '%' }"></div>
					            </div>
					          </li>
					        </ul>
					 </div>
					 </div>	
					<div class="form-group">
					 <label for="inputDate" class="col-sm-3 control-label">详情banner图</label>
					 <div class="col-xs-8">
					      <img ng-src="{{info.img}}" width="100%" height="200" ng-model="info.img">
					        <input type="file" nv-file-select uploader="uploader2" / ng-hide="hide===true" ><br/>
					        <ul class="list-group">
					          <li class="list-group-item" ng-repeat="item in uploader2.queue">
					            文件名: <span ng-bind="item.file.name"></span>
					            <button type="button" class="btn btn-default btn-xs"  ng-click="item.upload()"><span class="glyphicon glyphicon-upload"></span> 上传</button>
					            <div class="progress mt10">
					              <div class="progress-bar" role="progressbar" ng-style="{ 'width': uploader2.progress + '%' }"></div>
					            </div>
					          </li>
					        </ul>
					 </div>
					 </div>	
					<div class="form-group">
						<label class="col-xs-3 control-label">文字详情</label>
						<div class="col-xs-8">
							<!-- <div text-angular ng-model="info.info"></div> -->
							<div class="ueditor" ng-model="info.info"></div>

						</div>
					</div>

					<div class="form-group">
						<label class="col-xs-3 control-label">库存</label>
						<div class="col-xs-8">
							<input type="number" class="form-control" placeholder="请输入库存"
							ng-model="info.num"
							>
						</div>
					</div>

					<div class="form-group">
						<label class="col-xs-3 control-label">虚拟参与人数</label>
						<div class="col-xs-8">
							<input type="number" class="form-control" placeholder="请输入虚拟参与人数"
							ng-model="info.fictitious_num"
							>
						</div>
					</div>

					<div class="form-group">
						<label class="col-xs-3 control-label">分享标题</label>
						<div class="col-xs-8">
							<input type="text" class="form-control" placeholder="请输入分享标题"
							ng-model="info.share_title"
							>
						</div>
					</div>

					<div class="form-group">
						<label class="col-xs-3 control-label">分享内容</label>
						<div class="col-xs-8">
							<textarea rows="6" class="form-control" placeholder="请输入分享内容" ng-model="info.share_content"></textarea>
						</div>
					</div>


					<div class="form-group">
						<label class="col-xs-3 control-label">自动开启活动</label>
						<div class="col-xs-1 mt10">
							<label class="i-switch bg-success" ng-init="obj.isSelected" style="margin-left:25%">
								<input type="checkbox" ng-model="obj.isSelected" ng-change="onChange(obj.isSelected, obj.id, obj.state)">
								<i></i>
							</label>
						<!-- <textarea rows="6" class="form-control" placeholder="购买须知" ng-model="info.buy_tips"></textarea> -->
						</div>
					</div>
					 			

				</div>


			</div>
		</div>
	</div>
</div>
<div class="modal-footer">
    <button class="btn btn-primary" type="button" ng-click="ok()">OK</button>
    <button class="btn btn-warning" type="button" ng-click="cancel()">返回</button>
</div>


